﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="net.fckeditor.*" %>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>绑定内容</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" type="text/css" id="css" href="Resource/css/main.css">
	</head>
	<%
	
		FCKeditor fckEditor = new FCKeditor(request, "cataAd");
		fckEditor.setBasePath( request.getContextPath() + "/manage/fckeditor/" ) ; 
		//fckEditor.setWidth("400");
		fckEditor.setHeight("400");
		//fckEditor.setBasePath("./manage/");
		
		String isUpdate = (String)request.getAttribute("isUpdate");
		String code = (String)request.getAttribute("code");
		String isNav = (String)request.getAttribute("isNav");
		String cataAd = (String)request.getAttribute("cataAd");
		//String isUpdate = (String)request.getAttribute("isUpdate");
		//out.println(isUpdate);
	%>
	<body>
			<div id="framed">
  	<h2>绑定内容</h2>
  </div>
  
  <div>
  	<form action="saveCataAd.do" method="post">
  	<label for="isNav" class="select">是否显示导航</label>
		<select size="1" id="isNav" name="isNav">
			<option value="1" <%if("1".equals(isNav)) out.print("selected"); %>>显示</option>
			<option value="0" <%if("0".equals(isNav)) out.print("selected"); %>>不显示</option>
		</select>
		<input type="hidden" name="isUpdate" value="<%=isUpdate%>" />
		<input type="hidden" name="code" value="<%=code%>" />
		<br />
		

  	<!--
		<ul>
			<li><FCK:check command="CompatibleBrowser" /></li>
			<li><FCK:check command="FileBrowsing" /></li>
			<li><FCK:check command="FileUpload" /></li>
		</ul>
		-->
		<hr />
		
		<%
			if("true".equals(isUpdate))
				fckEditor.setValue(cataAd);
			out.println(fckEditor);
		%>
		<br />
		<input type="submit" value="保存" /></form>
		
	</div>
	</body>
</html>